import time
import asyncio
async def awaits():
    a = await t1(1)
    b = await t2(2)
    return (a, b)



def t1(x):
    for n in range(1, 10):
        print(n)
        asyncio.sleep(1)
    return x

def t2(y):
    for n in range(10, 20, 2):
        print(n)
        asyncio.sleep(2)
    return y

loop = asyncio.get_event_loop()
loop.run_until_complete(awaits())

loop.close()
